package com.zsc.shixun.model.type;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 分类管理创建VO
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/18
 */
@Data
public class TypeCreateVO {


    @ApiModelProperty(value = "类型名称")
    @NotNull(message = "必须填类型名称")
    @NotBlank(message = "类型名称不能为空")
    private String name;

    @ApiModelProperty(value = "前台是否显示")
    @NotNull(message = "必须填前台是否显示")
//    @NotBlank(message = "前台是否显示不能为空")
    private Boolean isShow;

    @ApiModelProperty(value = "类型简介")
    @NotNull(message = "必须填类型简介")
    @NotBlank(message = "类型简介不能为空")
    private String content;


    @ApiModelProperty(value = "用户id,关联b_user.id")
    private Long userId;
}
